home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
utilstem
/
utilpak1
/
zipproc.doc
< prev
next >
Wrap
Text File
|
1990-10-26
|
3KB
|
79 lines
ZIPPROC is a general purpose archive file processor. It automates
the bulk processing of archive files. It is fully configurable and
uses external utilities, so it can be used with ALL archive formats.
Some possible uses are:
- convert archive files from one format to another
- add comments to archive files
- strip comments from archive files
- create library lists from archive directories
- update archives to new compression techniques
ARCPROC uses external utilities to process files, so it will always
be useful with future formats.
The general operating procedure is:
create a working directory
for each source archive
tranfer the archive to the working directory
perform the #1 operation on the source file (eg. unpack it)
if /D switch used then
delete the source archive
else
transfer the source archive back to the source directory
end if
perform the #2 operation on the directory contents
perform the #3 operation on the directory contents (eg. repack it)
transfer the destination archive back to the source directory
clear the directory
next
erase the working directory
The source and destination archive extensions, as well as the operations
are specified in the file ZIPPROC.CTL. The control file consists of five
lines: the first two specify the source and destination file extensions;
the last three specify the operations to be performed. For example:
ARC
ZIP
ARCE %filename
COPY d:\myfile
PKZIP %filename
where:
1st line - Source archive extension. (these files will be moved to
the work dir for processing, one by one)
2nd line - Destination archive extension. (these files will be moved
back from the work dir when the processing is completed)
3rd line - 1st operation to be performed. This can be anything that
can normally be done from the DOS command line. Usually,
this command will invoke you archive unpacking utility.
Three special variables may be used:
%filespec - replaced with full file specification
(eg. MYFILE.TXT)
%filename - replaced with name portion of file spec
(eg. MYFILE)
%ext - replaced with extension portion of spec
(eg. TXT)
4th line - 2nd operation to be performed. This can be anything that
can normally be done from the DOS command line. If you
wish to add or delete files, or perform any other task
you can add it here. If there is no need for special
tasks, just leave this line blank.
NOTE: If you wish to perform more than one special task,
this line can execute a batch file containing to
perform more complicated functions.
5th line - 3rd operation to be performed. This can be anything that
can normally be done from the DOS command line. Usually,
this command will repack the files in the directory.
The sample shown would convert all .ARC files to .ZIP files, adding the
the file "myfile" to each archive.
ZIPPROC.CTL may be modified with your favorite text editor.